import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./plugins/element.js";
import axios from "axios";
Vue.config.productionTip = false;

// 配置基础路径
import "@/http/axios.js";
axios.defaults.baseURL = "http://web.woniulab.com:8005";
// 将 api 挂载到全局
import api from "./http/api.js";
Vue.prototype.$api = api;

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");